package com.itita.music.util;

import java.util.ArrayList;
import java.util.List;



public class StringHelper {

	public static List<String> spiltString(String str) {
		List<String> music_List = new ArrayList<String>();
		
		String[] musics = str.split(";");
		for (int i = 0; i < musics.length; i++) {
			music_List.add(musics[i]);
		}
		return music_List;
	}

	
	public static String toStringAll(List<String> music_List) {
		StringBuffer buffer = new StringBuffer();
		if (music_List.size() > 0) {
			for (int i = 0; i < music_List.size(); i++) {
				buffer.append(music_List.get(i));
				if (i < music_List.size() - 1)
					buffer.append(";");

			}
		}

		return buffer.toString();

	}
}
